home *** CD-ROM | disk | FTP | other *** search
Wrap
<?xml version="1.0" encoding="utf-8"?> <html><head><title>IsNumeric Function [Runtime]</title><meta name="filename" content="text/sbasic/common/03102700"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css"> p.P1{ } p.P2{ } span.T1{ font-weight:bold;} </style></head><body> <help:to-be-embedded Eid="isnumeric" xmlns:help="http://openoffice.org/2000/help"> <p class="Head1"><help:link Id="66406">IsNumeric Function [Runtime]</help:link></p> <p class="Paragraph">Tests whether the given expression is a number. If the expression is a <help:popup Id="66636" Eid="dezimal">number</help:popup>, the function returns <span style="font-weight:bold;">True</span>; otherwise <span style="font-weight:bold;">False</span>.</p> </help:to-be-embedded> <p class="Paragraph"><span class="T1">Syntax</span>:</p> <p class="Paragraph">IsNumeric (Var) <help:key-word value="IsNumeric" tag="kw66406_1" xmlns:help="http://openoffice.org/2000/help"/></p> <p class="Paragraph"><span class="T1">Return value</span>:</p> <p class="Paragraph">Bool</p> <p class="Paragraph"><span class="T1">Parameter</span>:</p> <p class="Paragraph">Var: Any expression to be tested.</p> <p class="P2">Example:</p> <p class="PropText">Sub ExampleIsNumeric</p> <p class="PropText">Dim vVar as variant</p> <p class="PropText">vVar = "ABC"</p> <p class="PropText">Print IsNumeric(sVar) REM Returns False</p> <p class="PropText">vVar = "123"</p> <p class="PropText">Print IsNumeric(sVar) REM Returns True</p> <p class="PropText">end sub</p> </body></html>